package com.geyue.core.mapper;

import com.geyue.common.repository.Mybatis;
import com.geyue.core.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Lyon on 2017/3/24.
 */
@Mapper
public interface UserMapper extends Mybatis<User> {

    User getByMobile(@Param("mobile") String mobile);

    Integer addition(@Param("mobile") String mobile,@Param("integral") Integer integral);

    Integer additionByID(@Param("id") Integer id,@Param("integral") Integer integral);

    Integer subtraction(@Param("mobile") String mobile,@Param("integral") Integer integral);

}
